﻿<Window x:Class="Cronus.Windows.MonthlySummary"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="450" Width="480"
        Title="Cronus Time Summary"
        Icon="/Cronus;component/Resources/FireCreature.ico" WindowStyle="ToolWindow" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="45" />
            <RowDefinition />
            <RowDefinition Height="20" />
        </Grid.RowDefinitions>
        
        <!--Allow the user to select some options.-->
        <GroupBox Header="Select Start Date" Grid.Row="0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <!--Start date-->
                <TextBlock Text="Select Start Date" Grid.Column="0"
                           HorizontalAlignment="Center" VerticalAlignment="Center" />
                <toolkit:DatePicker Name="_DateSelector" Grid.Column="1" Width="100"
                                    HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
                                    SelectedDateChanged="Date_SelectionChanged" />
                
                <!--Start of week-->
                <TextBlock Text="Start of Week" Grid.Column="2"
                           HorizontalAlignment="Center" VerticalAlignment="Center" />
                <ComboBox Name="_DaysOfWeekCombo" Grid.Column="3"
                          SelectionChanged="Date_SelectionChanged" />
            </Grid>
        </GroupBox>
        
        <!--Show the user stats on selected items.-->
        <TextBlock Name="_StatsTextBlock" Grid.Row="2" Padding="3" />

        <!--Show the summary to the user.-->
        <GroupBox Header="Summary" Grid.Row="1">
            <ListView Name="_Summary" SelectionChanged="Summary_SelectionChanged">
                <ListView.View>
                    <GridView>
                        <GridViewColumn DisplayMemberBinding="{Binding Path=Name}"
                                        Header="" />
                        <GridViewColumn DisplayMemberBinding="{Binding Path=HoursToday}"
                                        Header="Today's Hours" />
                        <GridViewColumn DisplayMemberBinding="{Binding Path=HoursWeek}"
                                        Header="Week's Hours" />
                        <GridViewColumn DisplayMemberBinding="{Binding Path=HoursMonth}"
                                        Header="Month's Hours" />
                    </GridView>
                </ListView.View>
            </ListView>
        </GroupBox>
    </Grid>
</Window>
